package com.azxcrm.project.monitor.workflow.domain;

import java.io.Serializable;

import com.azxcrm.framework.web.page.PageDomain;
import com.azxcrm.project.system.basic.domain.RegisterUser;
import com.azxcrm.project.system.user.domain.User;

/**
 * sys_work_flow_apply 审批申请
 * 
 * @author Dustyone
 * @date 2018-08-08
 */
public class WorkFlowApply extends PageDomain implements Serializable {
	private static final long serialVersionUID = 1L;

	/** 主键 */
	private Integer applyId;
	/** 申请人ID */
	private Integer userId;
	/** 申请的审批业务号 */
	private String businessId;
	/** 申请的流程类型 */
	private Integer flowId;
	/** 创建时间 */
	private String createTime;
	/** 状态 */
	private String status;
	/** 备注 */
	private String note;
	/** processInstanceTaskId */
	private String taskId;
	/** 订单号 */
	private Integer orderId;
	/** 注册号 */
	private Integer registerId;
	/** 申请的审批业务号 集合 */
	private String [] businessIds;
	/** 申请审批业务 */
	private WorkFlow workFlow;
	/** 用户信息 */
	private User user;
	/** 注册用户信息 */
	private RegisterUser registerUser;
	
	
	public RegisterUser getRegisterUser() {
		return registerUser;
	}

	public void setRegisterUser(RegisterUser registerUser) {
		this.registerUser = registerUser;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public WorkFlow getWorkFlow() {
		return workFlow;
	}

	public void setWorkFlow(WorkFlow workFlow) {
		this.workFlow = workFlow;
	}

	public Integer getOrderId() {
		return orderId;
	}

	public void setOrderId(Integer orderId) {
		this.orderId = orderId;
	}

	public String getTaskId() {
		return taskId;
	}

	public void setTaskId(String taskId) {
		this.taskId = taskId;
	}

	/** 流程名 */
	private String flowName;
	
	public String getFlowName() {
		return flowName;
	}

	public void setFlowName(String flowName) {
		this.flowName = flowName;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Integer getRegisterId() {
		return registerId;
	}

	public void setRegisterId(Integer registerId) {
		this.registerId = registerId;
	}

	/** 用户名*/
	private String userName;

	/**
	 * 设置：主键
	 */
	public void setApplyId(Integer applyId) {
		this.applyId = applyId;
	}

	/**
	 * 获取：主键
	 */
	public Integer getApplyId() {
		return applyId;
	}

	/**
	 * 设置：申请人ID
	 */
	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	/**
	 * 获取：申请人ID
	 */
	public Integer getUserId() {
		return userId;
	}

	/**
	 * 设置：申请的审批业务号
	 */
	public void setBusinessId(String businessId) {
		this.businessId = businessId;
	}

	/**
	 * 获取：申请的审批业务号
	 */
	public String getBusinessId() {
		return businessId;
	}

	/**
	 * 设置：申请的流程类型
	 */
	public void setFlowId(Integer flowId) {
		this.flowId = flowId;
	}

	/**
	 * 获取：申请的流程类型
	 */
	public Integer getFlowId() {
		return flowId;
	}

	/**
	 * 设置：创建时间
	 */
	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	/**
	 * 获取：创建时间
	 */
	public String getCreateTime() {
		return createTime;
	}

	/**
	 * 设置：状态
	 */
	public void setStatus(String status) {
		this.status = status;
	}

	/**
	 * 获取：状态
	 */
	public String getStatus() {
		return status;
	}

	/**
	 * 设置：备注
	 */
	public void setNote(String note) {
		this.note = note;
	}

	/**
	 * 获取：备注
	 */
	public String getNote() {
		return note;
	}
	
	public String[] getBusinessIds() {
		return businessIds;
	}

	public void setBusinessIds(String[] businessIds) {
		this.businessIds = businessIds;
	}

	/**
	 * 成单构造器
	 * @param userId
	 * @param businessId
	 * @param flowId
	 * @param note
	 * @param orderId
	 */
	public WorkFlowApply(Integer userId, String businessId, Integer flowId, String note, Integer orderId) {
		super();
		this.userId = userId;
		this.businessId = businessId;
		this.flowId = flowId;
		this.note = note;
		this.orderId = orderId;
	}

	/**
	 * 注册构造器
	 * @param userId
	 * @param businessId
	 * @param flowId
	 * @param note
	 * @param orderId
	 * @param registerId
	 */
	public WorkFlowApply(Integer userId, String businessId, Integer flowId, String note, Integer orderId,Integer registerId) {
		super();
		this.userId = userId;
		this.businessId = businessId;
		this.flowId = flowId;
		this.note = note;
		this.registerId=registerId;
	}
	/**
	 * 默认构造器
	 */
	public WorkFlowApply() {
		super();
		// TODO Auto-generated constructor stub
	}
	
	
	

}
